#include<iostream>
using namespace std;
void main()
{
	int a[5],i;
	int	max,min;

	for(i=0; i<5; i++)
	{
		cout<<"Input Number please;\n";
		cout<<"a["<<i<<"]=>";
		cin>>a[i];
	}

	max=a[0];
	min=a[0];

	for(i=0; i<5; i++)
	{
		if(a[i]>max)
			max=a[i];
		if(a[i]<min)
			min=a[i];
	}

	cout<<"Max is "<<max<<"  "<<"Min is "<<min<<endl;
}